<script setup>
import { inject } from 'vue';
import childCom from './child-com.vue';
const fatherCount = inject('count')
</script>

<template>
  <div class="father-page">father-- {{ fatherCount }}

    <childCom></childCom>
  </div>
</template>

<style scoped>
.father-page {
  width: 400px;
  height: 400px;
  padding: 20px;
  border: 1px solid #000;
}
</style>
